#include <stdio.h>

int main(int argc, const char *argv[])
{
	int a = 10;
	int b = 20;
	int c = 30;
	int d = 0;
	d = (++a, ++b, ++c);
	printf("d = %d  a = %d  b = %d  c = %d\n", d, a, b, c);// 31 11 21 31

	//注意:如果是逗号运算符，就必须用()扩起来
	//否则就不是逗号运算符了
	a = 10;
	b = 20;
	c = 30;
	d = 0;
	//这种写法 就是 从左到右 依次运算 d 中保存的就是 ++a 的结果
	d = ++a, ++b, ++c;
	printf("d = %d  a = %d  b = %d  c = %d\n", d, a, b, c);// 11 11 21 31

	return 0;
}
